#define _CRT_SECURE_NO_WARNINGS 1
#include"SeqList.h"


void InitSeqList(SL* p)
{
	p->a = (SLDatatype*)malloc(sizeof(SLDatatype) * 4);
	p->sz = 0;
	p->capacity = 4;
}

void DestroySeqList(SL* p)
{
	free(p->a);
	p->a = NULL;
	p->sz = 0;
	p->capacity = 0;
}
void PrintSeqList(SL* p)
{
	for (int i = 0; i < p->sz; i++)
	{
		printf("%d ", p->a[i]);
	}
	printf("\n");
}